package cn.net.wanji.entity;

import cn.net.wanji.utils.StringUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @author guodejun
 * @createTime 2022/10/28 10:40
 * @description
 */
@Data
public class VehiclePicInfo {

    String hourBatchNo;
    Integer  driveDir;
    String devType;
    String headPicTime;
    String tailPicTime;
    String sidePicTime;
    String headLaneNum;
    String tailLaneNum;
    String sideLaneNum;
    String licenseCode;
    String specialClass;
    String etcPassID;
    String relateEtcPassID;

    Integer  licenseColor;
    Integer  vehicleSpeed;
    Integer  identifyType;

    Integer  headImageSize;
    Integer  tailImageSize;
    Integer  sideImageSize;
    Integer  licenseImageSize;
    String vehicleAxleInfo;
    Integer  vehicleAxleCount;
    Integer  vehicleLength;
    Integer  vehicleWidth;
    Integer  vehicleHeigth;
    String dangerousGoods;
    String compositeImage;
    String headImage;
    String tailImage;
    String sideImage;
    String licenseImage;


    String vehicleModel;
    String reliability;
    String vehFeatureCode;
    String faceFeatureCode;
    String verifyCode;

    String vehicleWheelBase;
    String sideSheltered;
    @JsonProperty(value = "cLaserProofId")
    String cLaserProofId;
    @JsonProperty(value = "cLaserAssistFlag")
    String cLaserAssistFlag;

    String tailLicenseCode; //尾拍车牌号码
    String tailLicenseColor; //尾拍车牌颜色
    String vehBodyColor; //车身颜色
    String tailVehBodyColor; //尾拍车身颜色

    public void updateVehicleRsuInfo(VehicleRsuInfo vehicleRsuInfo) {
        vehicleRsuInfo.setCLaserProofId(cLaserProofId);
        vehicleRsuInfo.setCLaserAssistFlag(cLaserAssistFlag);
        vehicleRsuInfo.setHourBatchNo(hourBatchNo);
        vehicleRsuInfo.setDriveDir(driveDir);
        vehicleRsuInfo.setDevType(devType);

        vehicleRsuInfo.setHeadPicTime(StringUtils.timeRevise(headPicTime));
        vehicleRsuInfo.setTailPicTime(StringUtils.timeRevise(tailPicTime));
        vehicleRsuInfo.setSidePicTime(StringUtils.timeRevise(sidePicTime));

        vehicleRsuInfo.setHeadLaneNum(headLaneNum);
        vehicleRsuInfo.setTailLaneNum(tailLaneNum);
        vehicleRsuInfo.setSideLaneNum(sideLaneNum);
        vehicleRsuInfo.setLicenseCode(licenseCode);

        vehicleRsuInfo.setLicenseColor(licenseColor);
        vehicleRsuInfo.setVehicleSpeed(vehicleSpeed);
        vehicleRsuInfo.setIdentifyType(identifyType);

//        vehicleRsuInfo.setVehicleModel(vehicleModel);
//        vehicleRsuInfo.setReliability(reliability);
//        vehicleRsuInfo.setVehFeatureCode(vehFeatureCode);
//        vehicleRsuInfo.setFaceFeatureCode(faceFeatureCode);
//        vehicleRsuInfo.setVerifyCode(verifyCode);

        vehicleRsuInfo.setVehicleAxleInfo(vehicleAxleInfo);
        vehicleRsuInfo.setVehicleAxleCount(vehicleAxleCount);

        vehicleRsuInfo.setVehicleLength(vehicleLength);
        vehicleRsuInfo.setVehicleWidth(vehicleWidth);
        vehicleRsuInfo.setVehicleHeight(vehicleHeigth);
        vehicleRsuInfo.setDangerousGoods(dangerousGoods);
        vehicleRsuInfo.setCompositeImage(compositeImage);
        vehicleRsuInfo.setHeadImage(headImage);
        vehicleRsuInfo.setTailImage(tailImage);
        vehicleRsuInfo.setSideImage(sideImage);
        vehicleRsuInfo.setLicenseImage(licenseImage);
        vehicleRsuInfo.setSpecialClass(specialClass);
        vehicleRsuInfo.setEtcPassId(etcPassID);
        vehicleRsuInfo.setRelateEtcPassId(relateEtcPassID);

        vehicleRsuInfo.setTailLicenseCode(tailLicenseCode);
        vehicleRsuInfo.setTailLicenseColor(tailLicenseColor);
        vehicleRsuInfo.setVehBodyColor(vehBodyColor);
        vehicleRsuInfo.setTailVehBodyColor(tailVehBodyColor);



    }


}
